/*
 * @Description  : 借阅单管理
 * @Author       : zhao
 * @Date         : 2022-07-18 10:50:19
 * @LastEditors  : zhao
 * @LastEditTime : 2023-02-02 17:02:37
 */
import request from '/@/utils/request';


// 借阅单审核 --驳回
export function CSGetBorrowingFormBtnReject(data) {
    return request({
        url: '/api/BorrowingForm/CSGetBorrowingFormBtnReject',
        method: 'post',
        data: data
    })
}
// 借阅单审核 --通过
export function CSGetBorrowingFormBtnPass(data) {
    return request({
        url: '/api/BorrowingForm/CSGetBorrowingFormBtnPass',
        method: 'post',
        data: data
    })
}
// 借阅单审核 --完成
export function CSGetBorrowingFormBtnFinish(data) {

    return request({
        url: '/api/BorrowingForm/CSGetBorrowingFormBtnFinish',
        method: 'post',
        data: data
    })
}


// 借阅单 查询--待审批
export function CSGetBorrowingForm(data) {

    return request({
        url: '/api/BorrowingForm/CSGetBorrowingForm',
        method: 'post',
        data: data
    })
}
// 借阅单 查询--已审批
export function CSGetBorrowingFormNoApproved(data) {
    return request({
        url: '/api/BorrowingForm/CSGetBorrowingFormNoApproved',
        method: 'post',
        data: data
    })
}
// 借阅单 查询--已完成
export function CSGetBorrowingFormFinish(data) {
    return request({
        url: '/api/BorrowingForm/CSGetBorrowingFormFinish',
        method: 'post',
        data: data
    })
}
// 借阅单 查询--已过期
export function CSGetBorrowingFormOverdue(data) {
    return request({
        url: '/api/BorrowingForm/CSGetBorrowingFormOverdue',
        method: 'post',
        data: data
    })
}
// 借阅单 详情
export function CSGetBorrowingFormDetails(data) {
    return request({
        url: '/api/BorrowingForm/CSGetBorrowingFormDetails',
        method: 'post',
        data: data
    })
}
// 借阅单位
export function GetWorkCompany(data) {
    return request({
        url: '/api/Userinformation/GetWorkCompany',
        method: 'get',
        params: data
    })
}
// 获取任务书
export function GetAssignment(data) {
    return request({
        url: '/api/BorrowingForm/CSGetAssignment',
        method: 'post',
        data: data,
        responseType: "blob",
    })
}
// 获取介绍信
export function GetIntroductionLetter(data) {
    return request({
        url: '/api/BorrowingForm/CSGetIntroductionLetter',
        method: 'post',
        responseType: "blob",
        data: data
    })
}
// CS借阅单列表-详情-编辑保存
export function CSGetBorrowingFormDetailsSave(data) {
    return request({
        url: '/api/BorrowingForm/CSGetBorrowingFormDetailsSave',
        method: 'post',
        data: data
    })
}
// CS借阅单列表-详情-删除
export function CSDeleteBorrowingFormDetails(data) {
    return request({
        url: '/api/BorrowingForm/CSDeleteBorrowingFormDetails',
        method: 'post',
        data: data
    })
}
// 打印借阅单详情---生成excel
export function DownloadFormDetailExcel(data) {
    return request({
        url: '/api/BorrowingForm/DownloadFormDetailExcel',
        method: 'post',
        responseType: "blob",
        data: data
    })
}
// CS获取借阅单列表-已驳回
export function CSGetBorrowingFormReject(data) {
    return request({
        url: '/api/BorrowingForm/CSGetBorrowingFormReject',
        method: 'post',
        data: data
    })
}
// CS获取借阅单列表-已驳回详情新
export function CSGetBorrowingFormDetailsReject(data) {
    return request({
        url: '/api/BorrowingForm/CSGetBorrowingFormDetailsReject',
        method: 'post',
        data: data
    })
}
